﻿<?php
      include_once "blog.php";  
      $connection = connect($config);
	  

      $posts = getAllPosts($connection,0,10);
	  $count=count($posts);
	  
	  
	  
      view("menu", array( 'posts' => $posts) );
	  
?>